package com.topcheer.common.auth.user;

import com.topcheer.common.api.base.vo.Operation;
import com.topcheer.common.api.base.vo.Role;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author xutao
 * @Package com.example.baseline.rbac.user
 * @Description: ${todo}
 * @date 2020/3/30 10:55
 */
@Setter
@Getter
public class JwtUser implements Serializable {

    private String userName;

    private String password;

    private Long userId;

    private List<Role> roleList;

    @Getter
    @Setter
    private Long orgId;


    private List<Operation> operations;

    public JwtUser() {
    }

    public JwtUser(String username, String password, Long userId, List<Role> roleList) {
        this.userName = username;
        this.password = password;
        this.userId = userId;
        this.roleList = roleList;
    }


}
